﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ProgNetComponents.Log;

namespace System
{
    public static class StringExt2
    {
        public static void Log(this string str, string fileName)
        {
            Logger logger = new Logger(fileName);
            logger.Log(str);
            logger.CloseSession();
        }
        public static void Log(this string str, Logger logger = null)
        {
            if (logger == null)
                logger = Logger.Default;
            logger.Log(str);
        }
    }
}
